/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package OtherPubs;

import Rout.GoBefore;
import org.testng.annotations.*;

public class SolidFiles {

    private GoBefore browser = new GoBefore();     
                
    @BeforeMethod
    public void setUp() throws Exception {   
        
        System.out.println("\n Run test: " + getClass().getSimpleName());       
        browser.setCurURL("http://www.solidfiles.com/d/1c2afcbca3/Windows_Loader_v2.2.2.zip");
        browser.setClButton("ui-button small green  direct-download");
        browser.setCssButton("#download-button");
        browser.setXpButton("//*[@id=\"download-button\"]");
        browser.setXpFilename("//*[@id=\"middle\"]/div[1]/div[1]/h2");
        browser.setRepDir(getClass().getSimpleName());       
        browser.setLpurl("getsecuredfiles.com");
//        browser.setEnableSafeBrow(Boolean.FALSE);

    }        
            
    @Test
    public void SmalButton () throws Exception {
        
        
        
        browser.setUp();
        browser.ipDetect();
        browser.testRun();
        browser.lpDetect();
        browser.verFilePresent();
        browser.verFilename();
    
    }
    
    @AfterMethod
    public void ThearsDown() {
        browser.getDriver().quit();      
        
    }
    
}

